#!bin/bash

make clean
make test2
if [ $3 == 0 ];
then
./test2 $1 $2 $3
python image_output.py
elif [ $3 == 1 ];
then
for i in {1..8}
do
./test2 $[ $1 ** $i ] $[ $2 ** $i ] $3
done
python image_err.py
echo "finish"
fi
